import 'package:flutter/material.dart';

class UserPage extends StatefulWidget {
  const UserPage({super.key});

  @override
  State<UserPage> createState() => _UserPageState();
}

class _UserPageState extends State<UserPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('我的创业项目')),
      body: ListView(
        children: <Widget>[
          Card(
            elevation: 20,
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(10),
            ),
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    "assets/images/bac2.jpeg",
                    fit: BoxFit.cover,
                  ),
                ),
              ],
            ),
          ),
          Card(
            elevation: 20,
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(10),
            ),
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                    aspectRatio: 20 / 11,
                    child: ListView(
                      padding: const EdgeInsets.all(20),
                      children: const [
                        Text("工作室： 任意门动画工作室"),
                        Divider(),
                        Text("类型：校园创业"),
                        Divider(),
                        Text("团队规模：10人"),
                        Divider(),
                        Text(
                            "团队介绍：工作室主要以学校课题为主，招募大一到大三对二维、三维动画，游戏建模感兴趣的在校学生，一起参与项目开发"),
                        Divider(),
                      ],
                    )),
                ListTile(
                  leading: ClipOval(
                    child: Image.asset("assets/images/head1.jpeg",
                        fit: BoxFit.cover, height: 60, width: 60),
                  ),
                  title: const Text("动画1班任同学"),
                  subtitle: const Text("地点：吉林动画学院"),
                )
              ],
            ),
          ),
        ],
      ),
    );
  }
}
